#include "CliConn.hpp"
#include <cstdlib>
#include <iostream>
#include <string>
#include <utility>
#include <vector>


int main(int argc, const char** argv) {

    std::string s = "send a msg\n";

    std::vector<std::string> ss;
    ss.push_back(s);

    auto msg = Msg{s.c_str(), (short)s.length()};

    for (int i = 0; i < atoi(argv[3]); ++ i) 
    {
        CliConn conn{argv[1], atoi(argv[2])};
        conn.echo(msg);
        //std::cout << "--->" << i << "<---\n";
        //conns.push_back(std::move(conn));
        //std::cin >> sig;
    }


    return 0;
}